#include "visit.h"

void visit_Program(ASTNode* node){
    if(node -> type == "Program"){
        ASTNode* child = node -> children[0];
        // child为compunit
        SymbolTable* s = new SymbolTable();
        BasicBlock* bb = nullptr;
        Module* m = new Module("test");

        

        visit_compUnit(child, s, bb, m);
    
        cout << "=======================================" << endl;
        cout << m -> print();
        
    }
}